/**
 * @author        Nicolas Bottarini <nicolasbottarini@gmail.com>, 404 <http://www.proyecto404.com>
 * @version       $Rev: 3 $
 * @lastrevision  $Date: 2011-09-12 16:45:37 +0000 (Mon, 12 Sep 2011) $	 
 */
package com.proyecto404.core.mvc {
	import com.proyecto404.core.BaseObject;
	import com.proyecto404.core.Check;
	import com.proyecto404.core.collections.Dictionary;
	
	public class Notification extends BaseObject {
		private var _sender:*;
		private var _name:String;
		private var _parameters:Dictionary;
		
		public function Notification(sender:*, name:String, parameters:Dictionary) {
			Check.argument.isNotNull(sender, "sender");
			Check.argument.isNotNull(name, "name");
			Check.argument.isNotNull(parameters, "parameters");
			_sender = sender;
			_name = name;
			_parameters = parameters;
		}
		
		public function get sender():* {
			return _sender;
		}
		
		public function get name():String {
			return _name;
		}

		public function get parameters():Dictionary {
			return _parameters;
		}
	}
}
